﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Enterprise.Migrations
{
    public partial class mdtordercreatindex : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateIndex(
                name: "IX_MDT_ORDER_PATIENT_ID_VISIT_ID_MDT_ID_ORDER_NO_ORDER_SUB_NO",
                table: "MDT_ORDER",
                columns: new[] { "PATIENT_ID", "VISIT_ID", "MDT_ID", "ORDER_NO", "ORDER_SUB_NO" },
                unique: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_MDT_ORDER_PATIENT_ID_VISIT_ID_MDT_ID_ORDER_NO_ORDER_SUB_NO",
                table: "MDT_ORDER");
        }
    }
}
